package com.github.tvbox.osc.ui.activity;

import android.os.Bundle;

import androidx.annotation.Nullable;

import com.github.tvbox.osc.R;
import com.github.tvbox.osc.base.BaseActivity;

/**
 * 首页(规范要求仅做容器，具体页面请参照同名Fragment组件)
 */
public class HomeActivity extends BaseActivity {

    @Override
    protected int getLayoutResID() {
        return R.layout.activity_home;
    }

    @Override
    protected void init(@Nullable Bundle savedInstanceState) {
        // 默认加载首页 Fragment
        if (savedInstanceState == null) {
            getSupportFragmentManager()
                    .beginTransaction()
                    .add(R.id.skin_fragment_container, HomeActivityFragment.newInstance())
                    .commitNowAllowingStateLoss();
        }
    }

}